local ST = LibStub("AceAddon-3.0"):GetAddon("SurgeTrack", true)
local STS = ST:NewModule("SurgeTrack_Spell")

function ST:COMBAT_TEXT_UPDATE(event, subEvent, spellName)
 if subEvent ~= "SPELL_ACTIVE" then return end
 local spellId = ST.spelldesc[spellName]
 if not spellId then return end
 local timeStamp = GetTime()
 local commit_info = {event = event, subEvent = subEvent, timestamp = timestamp, spellId = spallId, spellName = spellName, auraType = 'AVAIL', amount = 0}
 if not ST.active_item[spellId] then
  ST.active_item[spellId] = {}
  mask = tonumber("111111",2)
  ST:updateItem(spellId, commit_info, mask)
 end
end
